export const getMenu = (req, res) => {
  res.json([
    {
      name: '控制台',
      icon: 'dashboard',
      path: 'Dashboard',
      children: [
        {
          name: '分析页',
          path: 'Analysis',
          models: 'chart',
          route: '/Dashboard/Analysis',
        },
        {
          name: '监控页',
          path: 'Monitor',
          models: 'monitor',
          route: '/Dashboard/Monitor',
        },
        {
          name: '工作台',
          path: 'Workplace',
          models: 'project,activities,chart',
          route: '/Dashboard/Workplace',
          // hideInBreadcrumb: true,
          // hideInMenu: true,
        },
      ],
    },
    {
      name: '权限管理',
      icon: 'key',
      path: 'Permission',
      children: [
        {
          name: '用户管理',
          path: 'User',
          models: 'user',
          route: '/Permission/User',
        },
        {
          name: '角色管理',
          path: 'Role',
          route: '/Permission/Role',
        },
        {
          name: '资源管理',
          path: 'Resource',
          route: '/Permission/Resource',
        },
        {
          name: '部门管理',
          path: 'Dept',
          children: [
            {
              name: '子部门管理',
              path: 'DeptZ',
              route: '/Permission/Dept/DeptZ',
            },
            {
              name: '父部门管理',
              path: 'DeptF',
              route: '/Permission/Dept/DeptF',
            },
          ],
        },
      ],
    },
  ]);
};

export default {
  getMenu,
};
